package main

import "fmt"

func main() {
	message := make( chan string, 3 )
	go func() {
		message <- "hello world"
		message <- "xxxvideos"
		message <- "pornhub"
	}()

	xxx := make( chan int )
	go func () {
		xxx <- 1
	}()
	fmt.Println(<-message) // get one
	str := <-message // rest 1
	fmt.Println(str) // print xxxvideos
	// and message rest 1
	fmt.Println(<-message)
	// consider move as range to consume message
	fmt.Println(<-xxx)
}
